
<!DOCTYPE html>
<html lang="zh-hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<title>投注记录</title>
<link rel="stylesheet" href="__TEMPLATE__/webfile/layer.css" id="layui_layer_skinlayercss">
<link type="text/css" rel="stylesheet" href="__TEMPLATE__/webfile/dateTime_20161202.css">
<link rel="stylesheet" href="__TEMPLATE__/webfile/main.css">
<script src="__TEMPLATE__/sysme/js/jquery-1.9.1.min.js"></script>
<script src="__TEMPLATE__/sysme/js/layer.js" type="text/javascript"></script>
<style>
.logo_image{background-image:url("__ATTACHMENT__/{$logo.logoimg}")!important}
.zzc_recharge{width:100%;height:100%;min-height:650px;background:black;opacity: .3;position:absolute;top:0;display:none;z-index: 4;}
#ti_nr{width:100px;height:40px;background:#fff;position:absolute;top:50%;display:none;z-index: 5;left:50%;margin-left:-50px;margin-top:-20px;text-align: center;line-height:40px;font-size:16px;}
			</style>
</head>
<body cz-shortcut-listen="true">
<div class="header">
	<div class="main main_btm_border">
		<div class="left logo">
			<a href="{:url('index/home')}" class="logo-link" id=""><span class="logo_image"></span>
			
			</a>
		</div>
		<div class="right login_and_userinfo_1">
			<div class="login_header">
				<span class="welcome"></span>
				<div class="mobile_download" style="cursor:pointer">
					<i class="iconfont"></i><i class="iconfont"></i><span class="">手机app下载</span>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="model_2" class="model_2" style="display:none">
	<div class="model_header">
		<h1>温馨提醒</h1>
	</div>
	<div class="model_body">
		<span id="model_content"></span>
	</div>
	<div class="foot_succ">
		<a onclick="jQuery.modal.close()" class="btn btn-default btn-radius">确定</a>
	</div>
</div>
<div class="main usercenter">
	<div class="user_usersafe">
		<div class="user_menu left">
			<h2>会员中心</h2>
			<ul>
				<li><i class="iconfont"></i><a href="{:url('user/index')}">个人中心</a></li>
				<li><i class="iconfont"></i><a class="user_goto_finance" href="{:url('user/recharge')}">财务中心</a></li>
				<li class="hover"><i class="iconfont"></i><a href="{:url('user/callRecord')}">交易记录</a></li>
				<!-- 	<li><i class="iconfont"></i><a href="{:url('user/detail')}">详细设定</a></li> -->
				<li><i class="iconfont"></i><a href="{:url('user/peilvdetail')}">赔率详情</a></li>
				<li><i class="iconfont"></i><a href="{:url('user/message')}">信息公告</a></li>
				 <li><i class="iconfont"></i><a href="{:url('user/djsm')}">等级说明</a></li>
			</ul>
			
			<h2>代理中心</h2>
			<ul>
			
				<li><i class="iconfont"></i><a class="user_goto_finance" href="{:url('user/dlCentent')}">代理说明</a></li>
				{if($f.dl==1)}
				<li><i class="iconfont"></i><a href="{:url('user/dailibaobiao')}">代理报表</a></li>
				<li><i class="iconfont"></i><a href="{:url('user/xiajibaobiao')}">下级报表</a></li> 
				<li><i class="iconfont"></i><a href="{:url('user/xiajikaihu')}">下级开户</a></li>
				<!--<li><i class="iconfont"></i><a href="{:url('user/xiajiguanli')}">下级管理</a></li>-->
				<li><i class="iconfont"></i><a href="{:url('user/touzhumingxi')}">投注明细</a></li>
				<li><i class="iconfont"></i><a href="{:url('user/jiaoyimingxi')}">交易明细</a></li>
				{else/}
				{if($open==1)}
				<li><i class="iconfont"></i><a href="{:url('user/shenqing')}">代理申请</a></li>{/if}
				{/if}
			</ul>
		</div>
		<div class="user_right right">
			<div class="user_main" style="margin-top:0;">
				<div class="user_header"  style="margin-top:0;">
					<div class="user_header_nav">
						<ul>
							<li class="hover"><a href="{:url('user/callRecord')}">投注记录</a></li>
						</ul>
					</div>
				</div>
				<div class="user_body" style="position:relative;">
					<div class="zzc_recharge"></div>
					<div id="ti_nr"></div>
					<div class="info_select">
						<form class="" action="{:url('User/callRecord')}" method="post">
							<select name="czid">
								<option {if condition="$czid eq 0"}selected="" {/if} value="0">所有彩种</option>
								{foreach $list_ca as $cz}
								<option {if condition="$czid eq $cz.id"}selected="" {/if} value="{$cz.id}">
								{if condition="$cz.cp_name_new eq '' "}
									{$cz.cp_name_old}
								{else /}
									{$cz.cp_name_new}
								{/if}
								</option>
								{/foreach}
							</select>
							<select name="classtz">
								<option {if condition="$classtz eq 0"}selected="" {/if} value="0">全部投注</option>
                                <option {if condition="$classtz eq 2"}selected="" {/if} value="2">已结算投注</option>
                                <option {if condition="$classtz eq 1"}selected="" {/if} value="1">未结算投注</option>
								<option {if condition="$classtz eq 5"}selected="" {/if} value="5">追号记录</option>
							</select>
							<select name="timebh">
                                <option {if condition="$timebh eq 1"}selected="" {/if} value="1">今天</option>
                                <option {if condition="$timebh eq 2"}selected="" {/if} value="2">两天</option>
                                <option {if condition="$timebh eq 3"}selected="" {/if} value="3">三天</option>
								<option {if condition="$timebh eq 4"}selected="" {/if} value="4">七天</option>
								<option {if condition="$timebh eq 5"}selected="" {/if} value="5">十五天</option>
								<option {if condition="$timebh eq 6"}selected="" {/if} value="6">三十天</option>
								<option {if condition="$timebh eq 7"}selected="" {/if} value="7">所有</option>
                            </select>
                            <span>当前页面有效投注总金额：<span style="color:red;">{$yxje}</span>元</span>
							<div class="right select_box_btn">
								<input class="btn btn-default" type="submit" value="查 询">
							</div>
						</form>
					</div>
					<div class="buyrecord_data table">
						　　
						<table class="table">
						<thead>
						<tr>
							<th>
								彩种
							</th>
							<th>
								玩法
							</th>
							<th>
								期号
							</th>
							<th>
								投注金额
							</th>
							<th>
								状态
							</th>
							<th>
								下注时间
							</th>
							<th>
								下注详情
							</th>
							
							<!-- <th>
								撤单
							</th> -->
							
						</tr>
						</thead>
						<tbody>
						
	                    {if condition="$zongcount eq 0"}	        
						<tr>
							<td colspan="7" class="no_border">
								<div class="empty_data">
									暂无记录
								</div>
							</td>
						</tr>
						{else /}
						{foreach $touzhulist as $xh_1}
							<tr id="{$xh_1.id}">
	                        <td>{$xh_1.cp_name_new}</td>
	                        <td>{$xh_1.class_name_mini}</td>
	                        <td>{$xh_1.qihao}</td>
	                        <td>{$xh_1.tzje}</td>
	                        <td>
	                            {if condition="$xh_1.kjjg lt 1"}<span style="color:black;">待开奖</span>{else /}{if condition="$xh_1.zjje gt 0"}<span class="yizhong">已中奖</span>{else /}{if condition="$xh_1.zjje eq 3"}<span class="yizhong">已撤单</span>{else /}<span style="color:#ccc;">未中奖</span>{/if}{/if}  {/if}                         
	                       </td>
	                        <td>{$xh_1.tz_time}</td>
	                        <td><a href="{:url('User/callRecord')}?tzid={$xh_1.id}&czid={$xh_1.czid}" target="_blank"><span style="color:#00CC00">详细</span></a></td>
	                        
	                        <!-- <td>{if condition="$xh_1.kjjg lt 1"}<a href="javascript:;" onclick="delete_czdd({$xh_1.id})"><span>撤单</span></a>{/if}</td> -->
	                       
	                    	</tr>
	                    {/foreach}
						{/if}
						</tbody>
						</table>
						<div class="page_lay">
                                <div class="page_outer">
                                    <div style="padding:15px">
									<div style="float:left">共{$zys}页， {$zongcount}笔，当前第：{$page}页</div>
									<div style="float:left; margin-left:50px;">
									<a href="{:url('User/callRecord')}?timebh={$timebh}&czid={$czid}&classtz={$classtz}&page={$page-1}" style="color:black;">上一页</a>
									<a href="{:url('User/callRecord')}?timebh={$timebh}&czid={$czid}&classtz={$classtz}&page={$page+1}" style="color:black;margin-left:20px">下一页</a>
									</div>
									</div>
                                </div>
                            </div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
	function delete_czdd(odj){
	$.ajax({
		type:"get",
		data:{'id':odj},
		url:"/index/processing/colourfulWithdrawal",
		success:function(data){
			if(data==1){
				$('.zzc_recharge').show()
				$('#ti_nr').show().html('撤单成功')
				setTimeout(function(){
					$('.zzc_recharge').hide()
				    $('#ti_nr').hide().html('')
				    window.location.reload()
				},1000)
			    $('#'+odj).parent().remove()
			}else if(data==2){
				$('.zzc_recharge').show()
				$('#ti_nr').show().html('已封盘无法撤单')
				setTimeout(function(){
					$('.zzc_recharge').hide()
				    $('#ti_nr').hide().html('')
				    window.reload()
				},1000)
			}
		}
	});
}
</script>
</html>